<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="boardMgr" class="com.group.board.BoardMgr"/>
<jsp:useBean id="boardBean" class="com.group.board.BoardData"/>

<%
String num = request.getParameter("num");
String spage = request.getParameter("page");
String pass = request.getParameter("pass");

boolean delok = boardMgr.delData(num,pass);

if(delok){
	%>
			<script>
				alert("삭제되었습니다.");
			</script>
			
	<%
	}else{
		%>
			<script>
				alert("비밀번호 불일치");
				history.back();
			</script>
		<%
		}
		response.sendRedirect("boardlist.jsp?page="+spage);
%>
